import React, {Component} from 'react';
import ScrollableTabView from 'react-native-scrollable-tab-view';
import CustomTabBar from "./component/CustomTabBar";

import Attention from "./attention/Attention";
import Like from "./like/Like";
import Fans from "./fans/Fans";

class MyTabNav extends Component {
  render() {
    let {index} = this.props.route.params;
    return (
      <ScrollableTabView
        initialPage={index}
        renderTabBar={() => <CustomTabBar />}
      >
        <Attention tabLabel='互相关注'/>
        <Like tabLabel='喜欢'/>
        <Fans tabLabel='粉丝'/>
      </ScrollableTabView>
    );
  }
}

export default MyTabNav;